package com.naiterui.ehp.bs.emr.feign;

import com.naiterui.common.repository.page.PageVO;
import com.naiterui.ehp.bp.bo.im.SessionDetailBO;
import com.naiterui.ehp.bp.bo.im.SessionParamBO;
import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import springfox.documentation.annotations.ApiIgnore;

/**
 * IM Feign Client
 *
 * @author guoyongxiang
 * @version 1.0.0
 * @date 2021/7/7 16:20
 **/
@ApiIgnore
@RequestMapping("inner")
@FeignClient(name = "emrIm", url = "${ehp.domain.im}", configuration = FeignConfiguration.class)
public interface IMFeignClient {

    @PostMapping("/session/list")
    PageVO<SessionDetailBO> sessionList(@RequestBody SessionParamBO sessionParam) throws BusinessException;
}
